﻿using Fine.Collections.Cont;
using Fine.Collections.Intf;
using Fine.TestUtils;
using NUnit.Framework;



namespace Fine.Collections.Cont
{
    [TestFixture][Category("Perf")]
    public class ArrList_perf_test
    {

        [Test]
        public void Test_WrightAndRead_1()
        {
            ArrList<ulong> arrlist = new ArrList<ulong>(1, 10000000);

            for (ulong i = 1; i <= 10000000; i++)
                arrlist.Add(i);

            ulong z;
            for (int i = 1; i <= 10000000; i++)
                z = arrlist[i];
        }


        [Test]
        public void Test_WrightAutoExtend()
        {
            ArrList<ulong> arrlist = new ArrList<ulong>(1);

            for (ulong i = 1; i <= 10000000; i++)
                arrlist.Add(i);
        }

    }
}
